package ar.uade.edu.fain.ad.server.util;

import java.util.Calendar;
import java.util.Date;

public class DateUtils {

	private DateUtils() {
		super();
	}

	public static Date limpiarHora(final Date value) {
		if (value == null) {
			return null;
		}
		final Calendar calendar = Calendar.getInstance();
		calendar.setTime(value);
		calendar.set(Calendar.HOUR_OF_DAY, 0);
		calendar.set(Calendar.MINUTE, 0);
		calendar.set(Calendar.SECOND, 0);
		calendar.set(Calendar.MILLISECOND, 0);
		return calendar.getTime();
	}

}
